From 3c4b2d4c00fd0dcb2d8044c6efa0ce46c234639a Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Tue, 2 Jan 2007 14:19:47 +0000 Subject: [PATCH] [PV-on-HVM] blkfront: use %Lu instead of %llu to xenbus_gather. The 'll' length modifier is not available with scanf (and therefore xenbus_gather) on older kernel versions so use 'L' which is available at least back to 2.6.5. Signed-off-by: Ian Campbell --- linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c b/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c index ff14259809..5b07416fa2 100644 --- a/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c +++ b/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c @@ -306,7 +306,7 @@ static void connect(struct blkfront_info *info) DPRINTK("blkfront.c:connect:%s.\n", info->xbdev->otherend); err = xenbus_gather(XBT_NIL, info->xbdev->otherend, - "sectors", "%llu", §ors, + "sectors", "%Lu", §ors, "info", "%u", &binfo, "sector-size", "%lu", §or_size, NULL); -- 2.30.2